*** Settings ***
Documentation               通过IPMI接口设置NTP使能开关
Resource                    ../../test_function/ipmi/ipmi.robot
Library                     OperatingSystem
Library                     BuiltIn

Test Tags                   Ipmi_NTP

*** Variables ***
${input}                    raw 0x30 0x93 0xdb 0x07 0x00 0x81 0x00 0x01 0x01
${expected_rc}              ${0}
${expected_output}          db 07 00

*** Test Cases ***
Set NTP Enable Switch
    [Documentation]    测试通过IPMI接口设置NTP使能开关
    [Tags]  Set_NTP_Enable_Switch
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=Command execution failed with output: ${output}
    Should Contain    ${output}    ${expected_output}    msg=Expected output not found in: ${output}